package org.lemon.transport.mqtt.server.filter;

import lombok.Data;

@Data
public class EqualsTopicFilter implements MqttTopicFilter {

    private final String filter;

    public EqualsTopicFilter(String filter) {
        this.filter = filter;
    }

    @Override
    public boolean filter(String topic) {
        return filter.equals(topic);
    }
}
